﻿
function gTab(num) {
    for (var i = 1; i <= 7; i++) {
        var el = document.getElementById("m" + i);
        var eSon = document.getElementById("ms" + i);
        if (i == num) {
            el.className = "current";
            eSon.className = "";
        } else {
            el.className = "";
            eSon.className = "none";
        }
    }
}

//获取URL中的request参数
function getUrlParam(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null)
    { return decodeURIComponent(r[2]); }
    else
    { return ""; }

}

//当事人通道页签切换
function goCaseDetailUrl(url) {
    var ah = document.getElementById("hdnAH").value;
    window.location.href = url + "?ah=" + encodeURIComponent(ah);
}

//获取下拉框内选中的值
function GetSelectValue(Id) {
    var el = document.getElementById(Id);
    for (var i = 0; i < el.length; i++) {
        if (el[i].selected) {
            return el[i].value;
        }
    }

    return "";
}